!(function() {
var proxy = "http://data.aalto.fi/sproxy.php?service-uri="    
var filters = angular.module('filters', []);
    
filters.filter('urlFilter', function () {
    return function (url, after) {
         return url.substr(url.lastIndexOf(after)+1);
    };
});

var services = angular.module('services', []);

services.factory('sharedService', function($rootScope) {
    var sharedService = {};

    sharedService.message = '';

    sharedService.broadcast = function(msg) {
        this.message = msg;
        this.broadcastItem();
    };

    sharedService.broadcastItem = function() {
        $rootScope.$broadcast('handleBroadcast');
    };

    return sharedService;
});

services.factory('SparqlService', function($http) {
	console.log("Querying endpoint ..."); 
    var sparqlService = {
        query: function(endpoint,query){
              return $http({
                method: 'GET',
                headers: { 'Accept' : 'application/sparql-results+json' },
                url: proxy+endpoint,
                params: {query: query}
            })}
    }
    return sparqlService;
});

services.factory('VocabService', function($http) {
	console.log("Resolving namespace ...");   
    var vocabService = {
        test: function(namespace,query){
              return $http({
                method: 'GET',
                headers: { 'Accept' : 'application/sparql-results+json' },
                url: "http://localhost:8080/VocabTest/Test",
                params: {namespace: namespace, query: query,endpoint:"http://localhost:3030/test/sparql"}
            })}
    }
    return vocabService;
});



var editable = angular.module('editable', []);

editable.directive('contenteditable', function() {
  return {
    require: 'ngModel',
    link: function(scope, elm, attrs, ctrl) {
      // view -> model
      elm.bind('blur', function() {
        scope.$apply(function() {
          ctrl.$setViewValue(elm.text());
        });
      });
 
      // model -> view
      ctrl.$render = function(value) {
        elm.text(value);
      };
 
      // load init value from DOM
      ctrl.$render();
    }
  };
});

services.factory('PrefixService', function() {
    var prefixService = {
        localNamespaces : 0,
        usedNamespaces : {},
        namespaces :
        {"yago": "http://dbpedia.org/class/yago/",
          "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
          "foaf": "http://xmlns.com/foaf/0.1/",
          "dbp": "http://dbpedia.org/property/",
          "owl": "http://www.w3.org/2002/07/owl#",
          "dc": "http://purl.org/dc/elements/1.1/",
          "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
          "dbo": "http://dbpedia.org/ontology/",
          "rss": "http://purl.org/rss/1.0/",
          "sc": "http://purl.org/science/owl/sciencecommons/",
          "fb": "http://rdf.freebase.com/ns/",
          "skos": "http://www.w3.org/2004/02/skos/core#",
          "geonames": "http://www.geonames.org/ontology#",
          "geo": "http://www.w3.org/2003/01/geo/wgs84_pos#",
          "sioc": "http://rdfs.org/sioc/ns#",
          "gr": "http://purl.org/goodrelations/v1#",
          "cyc": "http://sw.opencyc.org/concept/",
          "akt": "http://www.aktors.org/ontology/portal#",
          "dbpedia": "http://dbpedia.org/resource/",
          "xsd": "http://www.w3.org/2001/XMLSchema#",
          "dcterms": "http://purl.org/dc/terms/",
          "gldp": "http://www.w3.org/ns/people#",
          "dbpprop": "http://dbpedia.org/property/",
          "dct": "http://purl.org/dc/terms/",
          "swrc": "http://swrc.ontoware.org/ontology#",
          "admin": "http://webns.net/mvcb/",
          "commerce": "http://search.yahoo.com/searchmonkey/commerce/",
          "content": "http://purl.org/rss/1.0/modules/content/",
          "doap": "http://usefulinc.com/ns/doap#",
          "xhtml": "http://www.w3.org/1999/xhtml#",
          "void": "http://rdfs.org/ns/void#",
          "vcard": "http://www.w3.org/2006/vcard/ns#",
          "dc11": "http://purl.org/dc/elements/1.1/",
          "bibo": "http://purl.org/ontology/bibo/",
          "org": "http://www.w3.org/ns/org#",
          "gen": "http://www.w3.org/2006/gen/ont#",
          "bill": "http://www.rdfabout.com/rdf/schema/usbill/",
          "wot": "http://xmlns.com/wot/0.1/",
          "qb": "http://purl.org/linked-data/cube#",
          "nie": "http://www.semanticdesktop.org/ontologies/2007/01/19/nie#",
          "test2": "http://this.invalid/test2#",
          "aiiso": "http://purl.org/vocab/aiiso/schema#",
          "d2rq": "http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#",
          "rel": "http://purl.org/vocab/relationship/",
          "http": "http://www.w3.org/2006/http#",
          "dcmit": "http://purl.org/dc/dcmitype/",
          "og": "http://opengraphprotocol.org/schema/",
          "factbook": "http://www4.wiwiss.fu-berlin.de/factbook/ns#",
          "cc": "http://creativecommons.org/ns#",
          "vann": "http://purl.org/vocab/vann/",
          "bio": "http://purl.org/vocab/bio/0.1/",
          "mo": "http://purl.org/ontology/mo/",
          "media": "http://purl.org/microformat/hmedia/",
          "ex": "http://example.com/",
          "book": "http://purl.org/NET/book/vocab#",
          "earl": "http://www.w3.org/ns/earl#",
          "event": "http://purl.org/NET/c4dm/event.owl#",
          "cv": "http://purl.org/captsolo/resume-rdf/0.2/cv#",
          "drugbank": "http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/",
          "cld": "http://purl.org/cld/terms/",
          "dv": "http://rdf.data-vocabulary.org/#",
          "ad": "http://schemas.talis.com/2005/address/schema#",
          "air": "http://dig.csail.mit.edu/TAMI/2007/amord/air#",
          "ical": "http://www.w3.org/2002/12/cal/ical#",
          "dcq": "http://purl.org/dc/terms/",
          "reco": "http://purl.org/reco#",
          "swc": "http://data.semanticweb.org/ns/swc/ontology#",
          "botany": "http://purl.org/NET/biol/botany#",
          "musim": "http://purl.org/ontology/similarity/",
          "tag": "http://www.holygoat.co.uk/owl/redwood/0.1/tags/",
          "rev": "http://purl.org/stuff/rev#",
          "biblio": "http://purl.org/net/biblio#",
          "dir": "http://schemas.talis.com/2005/dir/schema#",
          "days": "http://ontologi.es/days#",
          "osag": "http://www.ordnancesurvey.co.uk/ontology/AdministrativeGeography/v2.0/AdministrativeGeography.rdf#",
          "ctag": "http://commontag.org/ns#",
          "log": "http://www.w3.org/2000/10/swap/log#",
          "cs": "http://purl.org/vocab/changeset/schema#",
          "sd": "http://www.w3.org/ns/sparql-service-description#",
          "fn": "http://www.w3.org/2005/xpath-functions#",
          "memo": "http://ontologies.smile.deri.ie/2009/02/27/memo#",
          "owlim": "http://www.ontotext.com/trree/owlim#",
          "rdfg": "http://www.w3.org/2004/03/trix/rdfg-1/",
          "cfp": "http://sw.deri.org/2005/08/conf/cfp.owl#",
          "xfn": "http://vocab.sindice.com/xfn#",
          "xhv": "http://www.w3.org/1999/xhtml/vocab#",
          "sism": "http://purl.oclc.org/NET/sism/0.1/",
          "mu": "http://www.kanzaki.com/ns/music#",
          "cmp": "http://www.ontologydesignpatterns.org/cp/owl/componency.owl#",
          "ome": "http://purl.org/ontomedia/core/expression#",
          "cal": "http://www.w3.org/2002/12/cal/ical#",
          "af": "http://purl.org/ontology/af/",
          "co": "http://purl.org/ontology/co/core#",
          "afn": "http://jena.hpl.hp.com/ARQ/function#",
          "dbr": "http://dbpedia.org/resource/",
          "xs": "http://www.w3.org/2001/XMLSchema#",
          "xf": "http://www.w3.org/2002/xforms/",
          "giving": "http://ontologi.es/giving#",
          "daia": "http://purl.org/ontology/daia/",
          "dcn": "http://www.w3.org/2007/uwa/context/deliverycontext.owl#",
          "ok": "http://okkam.org/terms#",
          "lomvoc": "http://ltsc.ieee.org/rdf/lomv1p0/vocabulary#",
          "ir": "http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",
          "swanq": "http://purl.org/swan/1.2/qualifiers/",
          "math": "http://www.w3.org/2000/10/swap/math#",
          "swande": "http://purl.org/swan/1.2/discourse-elements/",
          "rif": "http://www.w3.org/2007/rif#",
          "jdbc": "http://d2rq.org/terms/jdbc/",
          "sr": "http://www.openrdf.org/config/repository/sail#",
          "myspace": "http://purl.org/ontology/myspace#",
          "tzont": "http://www.w3.org/2006/timezone#",
          "con": "http://www.w3.org/2000/10/swap/pim/contact#",
          "sider": "http://www4.wiwiss.fu-berlin.de/sider/resource/sider/",
          "wn20schema": "http://www.w3.org/2006/03/wn/wn20/schema/",
          "cert": "http://www.w3.org/ns/auth/cert#",
          "movie": "http://data.linkedmdb.org/resource/movie/",
          "pto": "http://www.productontology.org/id/",
          "oo": "http://purl.org/openorg/",
          "nfo": "http://www.semanticdesktop.org/ontologies/nfo/#",
          "ac": "http://umbel.org/umbel/ac/",
          "po": "http://purl.org/ontology/po/",
          "akts": "http://www.aktors.org/ontology/support#",
          "frbr": "http://purl.org/vocab/frbr/core#",
          "uniprot": "http://purl.uniprot.org/core/",
          "rsa": "http://www.w3.org/ns/auth/rsa#",
          "sioct": "http://rdfs.org/sioc/types#",
          "granatum": "http://chem.deri.ie/granatum/",
          "ov": "http://open.vocab.org/terms/",
          "daml": "http://www.daml.org/2001/03/daml+oil#",
          "dcat": "http://www.w3.org/ns/dcat#",
          "prv": "http://purl.org/net/provenance/ns#",
          "wo": "http://purl.org/ontology/wo/",
          "spacerel": "http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",
          "pmlj": "http://inference-web.org/2.0/pml-justification.owl#",
          "usgov": "http://www.rdfabout.com/rdf/schema/usgovt/",
          "wn": "http://xmlns.com/wordnet/1.6/",
          "taxo": "http://purl.org/rss/1.0/modules/taxonomy/",
          "prov": "http://www.w3.org/ns/prov#",
          "politico": "http://www.rdfabout.com/rdf/schema/politico/",
          "oauth": "http://demiblog.org/vocab/oauth#",
          "vs": "http://www.w3.org/2003/06/sw-vocab-status/ns#",
          "wdrs": "http://www.w3.org/2007/05/powder-s#",
          "scovo": "http://purl.org/NET/scovo#",
          "acm": "http://www.rkbexplorer.com/ontologies/acm#",
          "irrl": "http://www.ontologydesignpatterns.org/cp/owl/informationobjectsandrepresentationlanguages.owl#",
          "mit": "http://purl.org/ontology/mo/mit#",
          "vote": "http://www.rdfabout.com/rdf/schema/vote/",
          "lfm": "http://purl.org/ontology/last-fm/",
          "abc": "http://www.metadata.net/harmony/ABCSchemaV5Commented.rdf#",
          "lgd": "http://linkedgeodata.org/ontology/",
          "omt": "http://purl.org/ontomedia/ext/common/trait#",
          "nao": "http://www.semanticdesktop.org/ontologies/2007/08/15/nao#",
          "rep": "http://www.openrdf.org/config/repository#",
          "doac": "http://ramonantonio.net/doac/0.1/#",
          "spc": "http://purl.org/ontomedia/core/space#",
          "lode": "http://linkedevents.org/ontology/",
          "ore": "http://www.openarchives.org/ore/terms/",
          "affy": "http://www.affymetrix.com/community/publications/affymetrix/tmsplice#",
          "skosxl": "http://www.w3.org/2008/05/skos-xl#",
          "scot": "http://scot-project.org/scot/ns#",
          "pc": "http://purl.org/procurement/public-contracts#",
          "loc": "http://www.w3.org/2007/uwa/context/location.owl#",
          "resex": "http://resex.rkbexplorer.com/ontologies/resex#",
          "lastfm": "http://purl.org/ontology/last-fm/",
          "user": "http://schemas.talis.com/2005/user/schema#",
          "video": "http://purl.org/media/video#",
          "fec": "http://www.rdfabout.com/rdf/schema/usfec/",
          "money": "http://purl.org/net/rdf-money/",
          "coref": "http://www.rkbexplorer.com/ontologies/coref#",
          "atomix": "http://buzzword.org.uk/rdf/atomix#",
          "ti": "http://www.ontologydesignpatterns.org/cp/owl/timeinterval.owl#",
          "code": "http://telegraphis.net/ontology/measurement/code#",
          "swrl": "http://www.w3.org/2003/11/swrl#",
          "courseware": "http://courseware.rkbexplorer.com/ontologies/courseware#",
          "chord": "http://purl.org/ontology/chord/",
          "music": "http://musicontology.com/",
          "lingvoj": "http://www.lingvoj.org/ontology#",
          "omb": "http://purl.org/ontomedia/ext/common/being#",
          "dcam": "http://purl.org/dc/dcam/",
          "sede": "http://eventography.org/sede/0.1/",
          "powder": "http://www.w3.org/2007/05/powder#",
          "rei": "http://www.w3.org/2004/06/rei#",
          "lotico": "http://www.lotico.com/resource/",
          "audio": "http://purl.org/media/audio#",
          "wordmap": "http://purl.org/net/ns/wordmap#",
          "atom": "http://www.w3.org/2005/Atom/",
          "meta": "http://www.openrdf.org/rdf/2009/metadata#",
          "bio2rdf": "http://bio2rdf.org/",
          "ya": "http://blogs.yandex.ru/schema/foaf/",
          "sv": "http://schemas.talis.com/2005/service/schema#",
          "nco": "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#",
          "dctype": "http://purl.org/dc/dcmitype/",
          "wdr": "http://www.w3.org/2007/05/powder#",
          "tl": "http://purl.org/NET/c4dm/timeline.owl#",
          "protege": "http://protege.stanford.edu/system#",
          "rec": "http://purl.org/ontology/rec/core#",
          "link": "http://www.w3.org/2006/link#",
          "zoology": "http://purl.org/NET/biol/zoology#",
          "imm": "http://schemas.microsoft.com/imm/",
          "ecs": "http://rdf.ecs.soton.ac.uk/ontology/ecs#",
          "irw": "http://www.ontologydesignpatterns.org/ont/web/irw.owl#",
          "sit": "http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",
          "airport": "http://www.daml.org/2001/10/html/airport-ont#",
          "p3p": "http://www.w3.org/2002/01/p3prdfv1#",
          "kwijibo": "http://kwijibo.talis.com/",
          "lang": "http://ontologi.es/lang/core#",
          "spin": "http://spinrdf.org/spin#",
          "iswc": "http://annotation.semanticweb.org/2004/iswc#",
          "acl": "http://www.w3.org/ns/auth/acl#",
          "nrl": "http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#",
          "swrlb": "http://www.w3.org/2003/11/swrlb#",
          "doc": "http://www.w3.org/2000/10/swap/pim/doc#",
          "os": "http://www.w3.org/2000/10/swap/os#",
          "lx": "http://purl.org/NET/lx#",
          "fresnel": "http://www.w3.org/2004/09/fresnel#",
          "omc": "http://purl.org/ontomedia/ext/common/bestiary#",
          "omp": "http://purl.org/ontomedia/ext/common/profession#",
          "umbel": "http://umbel.org/umbel#",
          "java": "http://www.w3.org/2007/uwa/context/java.owl#",
          "ibis": "http://purl.org/ibis#",
          "myspo": "http://purl.org/ontology/myspace#",
          "time": "http://www.w3.org/2006/time#",
          "eztag": "http://ontologies.ezweb.morfeo-project.org/eztag/ns#",
          "dailymed": "http://www4.wiwiss.fu-berlin.de/dailymed/resource/dailymed/",
          "ne": "http://umbel.org/umbel/ne/",
          "acc": "http://purl.org/NET/acc#",
          "hard": "http://www.w3.org/2007/uwa/context/hardware.owl#",
          "osoc": "http://web-semantics.org/ns/opensocial#",
          "sp": "http://spinrdf.org/sp#",
          "doclist": "http://www.junkwork.net/xml/DocumentList#",
          "sail": "http://www.openrdf.org/config/sail#",
          "exif": "http://www.w3.org/2003/12/exif/ns#",
          "contact": "http://www.w3.org/2000/10/swap/pim/contact#",
          "es": "http://eulersharp.sourceforge.net/2003/03swap/log-rules#",
          "lom": "http://ltsc.ieee.org/rdf/lomv1p0/lom#",
          "hlisting": "http://sindice.com/hlisting/0.1/",
          "ptr": "http://www.w3.org/2009/pointers#",
          "spl": "http://spinrdf.org/spl#",
          "unit": "http://qudt.org/vocab/unit#",
          "tmo": "http://www.semanticdesktop.org/ontologies/2008/05/20/tmo#",
          "custom": "http://www.openrdf.org/config/sail/custom#",
          "smiley": "http://www.smileyontology.com/ns#",
          "test": "http://test2.example.com/",
          "formats": "http://www.w3.org/ns/formats/",
          "osgb": "http://data.ordnancesurvey.co.uk/id/",
          "prj": "http://purl.org/stuff/project/",
          "wnschema": "http://www.cogsci.princeton.edu/~wn/schema/",
          "so": "http://purl.org/ontology/symbolic-music/",
          "biol": "http://purl.org/NET/biol/ns#",
          "space": "http://purl.org/net/schemas/space/",
          "lifecycle": "http://purl.org/vocab/lifecycle/schema#",
          "h5": "http://buzzword.org.uk/rdf/h5#",
          "wv": "http://vocab.org/waiver/terms/",
          "resist": "http://www.rkbexplorer.com/ontologies/resist#",
          "ncal": "http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#",
          "meetup": "http://www.lotico.com/meetup/",
          "ping": "http://purl.org/net/pingback/",
          "sdl": "http://purl.org/vocab/riro/sdl#",
          "list": "http://www.w3.org/2000/10/swap/list#",
          "phss": "http://ns.poundhill.com/phss/1.0/",
          "sml": "http://topbraid.org/sparqlmotionlib#",
          "qdoslf": "http://foaf.qdos.com/lastfm/schema/",
          "tdb": "http://jena.hpl.hp.com/2008/tdb#",
          "moat": "http://moat-project.org/ns#",
          "net": "http://www.w3.org/2007/uwa/context/network.owl#",
          "omm": "http://purl.org/ontomedia/core/media#",
          "xen": "http://buzzword.org.uk/rdf/xen#",
          "label": "http://purl.org/net/vocab/2004/03/label#",
          "lfn": "http://www.dotnetrdf.org/leviathan#",
          "xhe": "http://buzzword.org.uk/rdf/xhtml-elements#",
          "nmo": "http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#",
          "swp": "http://www.w3.org/2004/03/trix/swp-2/",
          "sm": "http://topbraid.org/sparqlmotion#",
          "product": "http://purl.org/commerce/product#",
          "swanqs": "http://purl.org/swan/1.2/qualifiers/",
          "trackback": "http://madskills.com/public/xml/rss/module/trackback/",
          "dbpediaowl": "http://dbpedia.org/ontology/",
          "tags": "http://www.holygoat.co.uk/owl/redwood/0.1/tags/",
          "pr": "http://ontologi.es/profiling#",
          "smf": "http://topbraid.org/sparqlmotionfunctions#",
          "pmlp": "http://inference-web.org/2.0/pml-provenance.owl#",
          "grddl": "http://www.w3.org/2003/g/data-view#",
          "dcmitype": "http://purl.org/dc/dcmitype/",
          "nexif": "http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#",
          "common": "http://www.w3.org/2007/uwa/context/common.owl#",
          "oat": "http://openlinksw.com/schemas/oat/",
          "ire": "http://www.ontologydesignpatterns.org/cpont/ire.owl#",
          "swandr": "http://purl.org/swan/1.2/discourse-relationships/",
          "gold": "http://purl.org/linguistics/gold/",
          "biocore": "http://bio2rdf.org/core:",
          "fed": "http://www.openrdf.org/config/sail/federation#",
          "sim": "http://purl.org/ontology/similarity/",
          "climb": "http://climb.dataincubator.org/vocabs/climb/",
          "gpt": "http://purl.org/vocab/riro/gpt#",
          "bsbm": "http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/",
          "sesame": "http://www.openrdf.org/schema/sesame#",
          "pmt": "http://tipsy.googlecode.com/svn/trunk/vocab/pmt#",
          "opensearch": "http://a9.com/-/spec/opensearch/1.1/",
          "lt": "http://diplomski.nelakolundzija.org/LTontology.rdf#",
          "web": "http://www.w3.org/2007/uwa/context/web.owl#",
          "like": "http://ontologi.es/like#",
          "swh": "http://plugin.org.uk/swh-plugins/",
          "wisski": "http://wiss-ki.eu/",
          "soft": "http://www.w3.org/2007/uwa/context/software.owl#",
          "mysql": "http://web-semantics.org/ns/mysql/",
          "cycann": "http://sw.cyc.com/CycAnnotations_v1#",
          "imreg": "http://www.w3.org/2004/02/image-regions#",
          "frbre": "http://purl.org/vocab/frbr/extended#",
          "opm": "http://openprovenance.org/ontology#",
          "gob": "http://purl.org/ontology/last-fm/",
          "states": "http://www.w3.org/2005/07/aaa#",
          "nid3": "http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#",
          "obj": "http://www.openrdf.org/rdf/2009/object#",
          "wgs84": "http://www.w3.org/2003/01/geo/wgs84_pos#",
          "ddc": "http://purl.org/NET/decimalised#",
          "dummy": "http://hello.com/",
          "ddl": "http://purl.org/vocab/riro/ddl#",
          "crypto": "http://www.w3.org/2000/10/swap/crypto#",
          "swanag": "http://purl.org/swan/1.2/agents/",
          "resource": "http://purl.org/vocab/resourcelist/schema#",
          "xforms": "http://www.w3.org/2002/xforms/",
          "c4n": "http://vocab.deri.ie/c4n#",
          "rdfa": "http://www.w3.org/ns/rdfa#",
          "dcterm": "http://purl.org/dc/terms/",
          "cnt": "http://www.w3.org/2008/content#",
          "xl": "http://langegger.at/xlwrap/vocab#",
          "pmlr": "http://inference-web.org/2.0/pml-relation.owl#",
          "xesam": "http://freedesktop.org/standards/xesam/1.0/core#",
          "push": "http://www.w3.org/2007/uwa/context/push.owl#",
          "bibtex": "http://purl.oclc.org/NET/nknouf/ns/bibtex#",
          "xhtmlvocab": "http://www.w3.org/1999/xhtml/vocab/",
          "conserv": "http://conserv.deri.ie/ontology#",
          "am": "http://vocab.deri.ie/am#",
          "urn": "http://fliqz.com/",
          "pimo": "http://www.semanticdesktop.org/ontologies/2007/11/01/pimo#",
          "compass": "http://purl.org/net/compass#",
          "psych": "http://purl.org/vocab/psychometric-profile/",
          "rooms": "http://vocab.deri.ie/rooms#",
          "sl": "http://www.semanlink.net/2001/00/semanlink-schema#",
          "string": "http://www.w3.org/2000/10/swap/string#",
          "puc": "http://purl.org/NET/puc#",
          "wgs": "http://www.w3.org/2003/01/geo/wgs84_pos#",
          "profiling": "http://ontologi.es/profiling#",
          "plink": "http://buzzword.org.uk/rdf/personal-link-types#",
          "evset": "http://dsnotify.org/vocab/eventset/0.1/",
          "play": "http://uriplay.org/spec/ontology/#",
          "mf": "http://poshrdf.org/ns/mf#",
          "geographis": "http://telegraphis.net/ontology/geography/geography#",
          "dady": "http://purl.org/NET/dady#",
          "sysont": "http://ns.ontowiki.net/SysOnt/",
          "uri": "http://purl.org/NET/uri#",
          "bib": "http://zeitkunst.org/bibtex/0.1/bibtex.owl#",
          "scv": "http://purl.org/NET/scovo#",
          "coin": "http://purl.org/court/def/2009/coin#",
          "wairole": "http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#",
          "swanpav": "http://purl.org/swan/1.2/pav/",
          "tripfs": "http://purl.org/tripfs/2010/02#",
          "ttl": "http://www.w3.org/2008/turtle#",
          "swanco": "http://purl.org/swan/1.2/swan-commons/",
          "okkam": "http://models.okkam.org/ENS-core-vocabulary#",
          "game": "http://data.totl.net/game/",
          "swivt": "http://semantic-mediawiki.org/swivt/1.0#",
          "swanci": "http://purl.org/swan/1.2/citations/",
          "status": "http://ontologi.es/status#",
          "cco": "http://purl.org/ontology/cco/core#",
          "opo": "http://online-presence.net/opo/ns#",
          "ref": "http://purl.org/vocab/relationship/",
          "dbpp": "http://dbpedia.org/property/",
          "ezcontext": "http://ontologies.ezweb.morfeo-project.org/ezcontext/ns#",
          "oc": "http://opencoinage.org/rdf/",
          "olo": "http://purl.org/ontology/olo/core#",
          "meteo": "http://purl.org/ns/meteo#",
          "isq": "http://purl.org/ontology/is/quality/",
          "timeline": "http://purl.org/NET/c4dm/timeline.owl#",
          "awol": "http://bblfish.net/work/atom-owl/2006-06-06/#",
          "txn": "http://lod.taxonconcept.org/ontology/txn.owl#",
          "sparql": "http://www.openrdf.org/config/repository/sparql#",
          "geoes": "http://geo.linkeddata.es/ontology/",
          "evopat": "http://ns.aksw.org/Evolution/",
          "ldap": "http://purl.org/net/ldap/",
          "xtypes": "http://purl.org/xtypes/",
          "isi": "http://purl.org/ontology/is/inst/",
          "lark1": "http://users.utcluj.ro/~raluca/ontology/Ontology1279614123500.owl#",
          "anca": "http://users.utcluj.ro/~raluca/rdf_ontologies_ralu/ralu_modified_ontology_pizzas2_0#",
          "ct": "http://data.linkedct.org/resource/linkedct/",
          "wlp": "http://weblab-project.org/core/model/property/processing/",
          "aifb": "http://www.aifb.kit.edu/id/",
          "tarot": "http://data.totl.net/tarot/card/",
          "ist": "http://purl.org/ontology/is/types/",
          "pmlt": "http://inference-web.org/2.0/pml-trust.owl#",
          "kb": "http://deductions.sf.net/ontology/knowledge_base.owl#",
          "sdmx": "http://purl.org/linked-data/sdmx#",
          "whois": "http://www.kanzaki.com/ns/whois#",
          "xbrli": "http://www.xbrl.org/2003/instance#",
          "opmv": "http://purl.org/net/opmv/ns#",
          "dayta": "http://dayta.me/resource#",
          "prot": "http://www.proteinontology.info/po.owl#",
          "swid": "http://semanticweb.org/id/",
          "postcode": "http://data.ordnancesurvey.co.uk/id/postcodeunit/",
          "copyright": "http://rhizomik.net/ontologies/2008/05/copyrightonto.owl#",
          "wgspos": "http://www.w3.org/2003/01/geo/wgs84_pos#",
          "room": "http://vocab.deri.ie/rooms#",
          "sawsdl": "http://www.w3.org/ns/sawsdl#",
          "ufmedia": "http://purl.org/microformat/hmedia/",
          "remus": "http://www.semanticweb.org/ontologies/2010/6/Ontology1279614123500.owl#",
          "go": "http://www.geneontology.org/go#",
          "freebase": "http://rdf.freebase.com/ns/",
          "hcterms": "http://purl.org/uF/hCard/terms/",
          "geospecies": "http://rdf.geospecies.org/ont/geospecies#",
          "rulz": "http://purl.org/NET/rulz#",
          "opus": "http://lsdis.cs.uga.edu/projects/semdis/opus#",
          "dnr": "http://www.dotnetrdf.org/configuration#",
          "cos": "http://www.inria.fr/acacia/corese#",
          "pdo": "http://ontologies.smile.deri.ie/pdo#",
          "ao": "http://purl.org/ontology/ao/core#",
          "ean": "http://openean.kaufkauf.net/id/",
          "is": "http://purl.org/ontology/is/core#",
          "nsa": "http://multimedialab.elis.ugent.be/organon/ontologies/ninsuna#",
          "sioca": "http://rdfs.org/sioc/actions#",
          "act": "http://www.w3.org/2007/rif-builtin-action#",
          "gn": "http://www.geonames.org/ontology#",
          "eu": "http://eulersharp.sourceforge.net/2003/03swap/log-rules#",
          "core": "http://vivoweb.org/ontology/core#",
          "xro": "http://purl.org/xro/ns#",
          "dblp": "http://www4.wiwiss.fu-berlin.de/dblp/terms.rdf#",
          "loticoowl": "http://www.lotico.com/ontology/",
          "conv": "http://purl.org/twc/vocab/conversion/",
          "search": "http://sindice.com/vocab/search#",
          "pgterms": "http://www.gutenberg.org/2009/pgterms/",
          "gridworks": "http://purl.org/net/opmv/types/gridworks#",
          "dgfoaf": "http://west.uni-koblenz.de/ontologies/2010/07/dgfoaf.owl#",
          "derecho": "http://purl.org/derecho#",
          "bookmark": "http://www.w3.org/2002/01/bookmark#",
          "yoda": "http://purl.org/NET/yoda#",
          "languages": "http://eulersharp.sourceforge.net/2003/03swap/languages#",
          "crm": "http://www.cidoc-crm.org/cidoc-crm/",
          "gv": "http://rdf.data-vocabulary.org/#",
          "nt": "http://ns.inria.fr/nicetag/2010/09/09/voc#",
          "posh": "http://poshrdf.org/ns/posh/",
          "linkedct": "http://data.linkedct.org/vocab/",
          "countries": "http://eulersharp.sourceforge.net/2003/03swap/countries#",
          "dul": "http://www.loa-cnr.it/ontologies/DUL.owl#",
          "drug": "http://www.agfa.com/w3c/2009/drugTherapy#",
          "eg": "http://eulergui.sourceforge.net/engine.owl#",
          "session": "http://redfoot.net/2005/session#",
          "com": "http://purl.org/commerce#",
          "admingeo": "http://data.ordnancesurvey.co.uk/ontology/admingeo/",
          "ma": "http://www.w3.org/ns/ma-ont#",
          "organism": "http://eulersharp.sourceforge.net/2003/03swap/organism#",
          "httph": "http://www.w3.org/2007/ont/httph#",
          "wordnet": "http://purl.org/vocabularies/princeton/wordnet/schema#",
          "healthcare": "http://www.agfa.com/w3c/2009/healthCare#",
          "commons": "http://commons.psi.enakting.org/def/",
          "rnews": "http://iptc.org/std/rNews/2011-10-07#",
          "protons": "http://proton.semanticweb.org/2005/04/protons#",
          "tripfs2": "http://purl.org/tripfs/2010/06#",
          "rr": "http://www.w3.org/ns/r2rml#",
          "odp": "http://ontologydesignpatterns.org/",
          "organiz": "http://eulersharp.sourceforge.net/2003/03swap/organization#",
          "rail": "http://ontologi.es/rail/vocab#",
          "human": "http://eulersharp.sourceforge.net/2003/03swap/human#",
          "tio": "http://purl.org/tio/ns#",
          "prism": "http://prismstandard.org/namespaces/basic/2.0/",
          "schema": "http://schema.org/",
          "oboro": "http://obofoundry.org/ro/ro.owl#",
          "pbo": "http://purl.org/ontology/pbo/core#",
          "fab": "http://purl.org/fab/ns#",
          "w3p": "http://prov4j.org/w3p/",
          "geodata": "http://sws.geonames.org/",
          "toby": "http://tobyinkster.co.uk/#",
          "enc": "http://www.w3.org/2001/04/xmlenc#",
          "lvont": "http://lexvo.org/ontology#",
          "sindice": "http://vocab.sindice.net/",
          "provenir": "http://knoesis.wright.edu/provenir/provenir.owl#",
          "pobo": "http://purl.obolibrary.org/obo/",
          "r2r": "http://www4.wiwiss.fu-berlin.de/bizer/r2r/",
          "nocal": "http://vocab.deri.ie/nocal#",
          "lp": "http://launchpad.net/rdf/launchpad#",
          "openlinks": "http://www.openlinksw.com/schemas/virtrdf#",
          "elog": "http://eulersharp.sourceforge.net/2003/03swap/log-rules#",
          "cito": "http://purl.org/spar/cito/",
          "prissma": "http://ns.inria.fr/prissma/v1#",
          "ps": "https://w3id.org/payswarm#",
          "webtlab": "http://webtlab.it.uc3m.es/",
          "agents": "http://eulersharp.sourceforge.net/2003/03swap/agent#",
          "phil": "http://philosurfical.open.ac.uk/ontology/philosurfical.owl/",
          "db": "http://dbpedia.org/",
          "cpm": "http://catalogus-professorum.org/cpm/",
          "dbprop": "http://dbpedia.org/property/",
          "gd": "http://rdf.data-vocabulary.org/#",
          "esd": "http://def.esd.org.uk/",
          "edm": "http://www.europeana.eu/schemas/edm/",
          "malignneo": "http://www.agfa.com/w3c/2009/malignantNeoplasm#",
          "conversion": "http://purl.org/twc/vocab/conversion/",
          "payment": "http://reference.data.gov.uk/def/payment#",
          "vso": "http://purl.org/vso/ns#",
          "bioskos": "http://eulersharp.sourceforge.net/2003/03swap/bioSKOSSchemes#",
          "events": "http://eulersharp.sourceforge.net/2003/03swap/event#",
          "humanbody": "http://eulersharp.sourceforge.net/2003/03swap/humanBody#",
          "ass": "http://uptheasset.org/ontology#",
          "xfnv": "http://vocab.sindice.com/xfn#",
          "muo": "http://purl.oclc.org/NET/muo/muo#",
          "agetec": "http://www.agetec.org/",
          "quak": "http://dev.w3.org/cvsweb/2000/quacken/vocab#",
          "nndsr": "http://semanticdiet.com/schema/usda/nndsr/",
          "aair": "http://xmlns.notu.be/aair#",
          "req": "http://ns.softwiki.de/req/",
          "zbwext": "http://zbw.eu/namespaces/zbw-extensions/",
          "sport": "http://www.bbc.co.uk/ontologies/sport/",
          "ceo": "http://www.ebusiness-unibw.org/ontologies/consumerelectronics/v1#",
          "arch": "http://purl.org/archival/vocab/arch#",
          "genab": "http://eulersharp.sourceforge.net/2003/03swap/genomeAbnormality#",
          "linkedmdb": "http://data.linkedmdb.org/sparql/",
          "units": "http://eulersharp.sourceforge.net/2003/03swap/unitsExtension#",
          "address": "http://schemas.talis.com/2005/address/schema#",
          "agent": "http://eulersharp.sourceforge.net/2003/03swap/agent#",
          "hemogram": "http://www.agfa.com/w3c/2009/hemogram#",
          "xsl": "http://www.w3.org/1999/XSL/Transform#",
          "lgdo": "http://linkedgeodata.org/ontology/",
          "hospital": "http://www.agfa.com/w3c/2009/hospital#",
          "prvr": "http://purl.org/ontology/prv/rules#",
          "opwn": "http://www.ontologyportal.org/WordNet.owl#",
          "theatre": "http://purl.org/theatre#",
          "umbelrc": "http://umbel.org/umbel/rc/",
          "ro": "http://purl.org/obo/owl/ro#",
          "eat": "http://www.awesomesauce.net/urmom/",
          "pom": "http://maven.apache.org/POM/4.0.0#",
          "care": "http://eulersharp.sourceforge.net/2003/03swap/care#",
          "xds": "http://www.w3.org/2001/XMLSchema#",
          "cordis": "http://www4.wiwiss.fu-berlin.de/cordis/resource/cordis/",
          "govwild": "http://govwild.org/ontology/GWOntology.owl#",
          "card": "http://www.ashutosh.com/test/",
          "sio": "http://semanticscience.org/resource/",
          "quantities": "http://eulersharp.sourceforge.net/2003/03swap/quantitiesExtension#",
          "uni": "http://purl.org/weso/uni/uni.html#",
          "wai": "http://purl.org/wai#",
          "ui": "http://www.w3.org/ns/ui#",
          "prvtypes": "http://purl.org/net/provenance/types#",
          "c4o": "http://purl.org/spar/c4o/",
          "tei": "http://www.tei-c.org/ns/1.0/",
          "voaf": "http://mondeca.com/foaf/voaf#",
          "hartigprov": "http://purl.org/net/provenance/ns#",
          "wao": "http://webtlab.it.uc3m.es/2010/10/WebAppsOntology#",
          "clinproc": "http://www.agfa.com/w3c/2009/clinicalProcedure#",
          "environ": "http://eulersharp.sourceforge.net/2003/03swap/environment#",
          "cube": "http://purl.org/linked-data/cube#",
          "lod2": "http://lod2.eu/schema/",
          "sig": "http://purl.org/signature#",
          "gelo": "http://krauthammerlab.med.yale.edu/ontologies/gelo#",
          "decl": "http://www.linkedmodel.org/1.0/schema/decl#",
          "coeus": "http://bioinformatics.ua.pt/coeus/",
          "span": "http://www.ifomis.org/bfo/1.1/span#",
          "transmed": "http://www.w3.org/2001/sw/hcls/ns/transmed/",
          "obo": "http://purl.obolibrary.org/obo/",
          "semtweet": "http://semantictweet.com/",
          "dgtwc": "http://data-gov.tw.rpi.edu/2009/data-gov-twc.rdf#",
          "clineva": "http://www.agfa.com/w3c/2009/clinicalEvaluation#",
          "hints2005": "http://purl.org/twc/cabig/model/HINTS2005-1.owl#",
          "aneo": "http://akonadi-project.org/ontologies/aneo#",
          "wf": "http://www.w3.org/2005/01/wf/flow#",
          "lib": "http://purl.org/library/",
          "infection": "http://www.agfa.com/w3c/2009/infectiousDisorder#",
          "scsv": "http://purl.org/NET/schema-org-csv#",
          "zem": "http://s.zemanta.com/ns#",
          "scowt": "http://purl.org/weso/ontologies/scowt#",
          "res": "http://www.w3.org/2005/sparql-results#",
          "ccard": "http://purl.org/commerce/creditcard#",
          "p20": "http://zbw.eu/beta/p20/vocab/",
          "ccom": "http://purl.org/ontology/cco/mappings#",
          "sco": "http://purl.org/ontology/sco#",
          "atomowl": "http://bblfish.net/work/atom-owl/2006-06-06/#",
          "cmo": "http://purl.org/twc/ontologies/cmo.owl#",
          "spatial": "http://geovocab.org/spatial#",
          "edam": "http://purl.bioontology.org/ontology/EDAM/",
          "prog": "http://purl.org/prog/",
          "gc": "http://www.oegov.org/core/owl/gc#",
          "out": "http://ontologies.hypios.com/out#",
          "eco": "http://www.ebusiness-unibw.org/ontologies/eclass/5.1.4/#",
          "gml": "http://www.opengis.net/gml/",
          "skip": "http://skipforward.net/skipforward/resource/",
          "olia": "http://purl.org/olia/olia.owl#",
          "vaem": "http://www.linkedmodel.org/schema/vaem#",
          "cpv": "http://purl.org/weso/cpv/",
          "ngeo": "http://geovocab.org/geometry#",
          "voag": "http://voag.linkedmodel.org/schema/voag#",
          "ann": "http://www.w3.org/2000/10/annotation-ns#",
          "pos": "http://www.w3.org/2003/01/geo/wgs84_pos#",
          "disease": "http://www.agfa.com/w3c/2009/humanDisorder#",
          "dtype": "http://www.linkedmodel.org/schema/dtype#",
          "campsite": "http://www.openlinksw.com/campsites/schema#",
          "s4ac": "http://ns.inria.fr/s4ac/v2#",
          "name": "http://example.org/name#",
          "sioctypes": "http://rdfs.org/sioc/types#",
          "bcnnorms": "http://datos.bcn.cl/ontologies/bcn-norms#",
          "rv": "http://wifo-ravensburg.de/semanticweb.rdf#",
          "diseasome": "http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/",
          "shv": "http://ns.aksw.org/spatialHierarchy/",
          "owls": "http://www.daml.org/services/owl-s/1.2/Service.owl#",
          "vcard2006": "http://www.w3.org/2006/vcard/ns#",
          "saxon": "http://saxon.sf.net/",
          "ppo": "http://vocab.deri.ie/ppo#",
          "sec": "https://w3id.org/security#",
          "rdo": "http://purl.org/rdo/ns#",
          "mtecore": "http://purl.org/olia/mte/multext-east.owl#",
          "soap": "http://www.w3.org/2003/05/soap-envelope/",
          "vitro": "http://vitro.mannlib.cornell.edu/ns/vitro/public#",
          "oboso": "http://purl.org/obo/owl/SO#",
          "mte": "http://nl.ijs.si/ME/owl/",
          "ogp": "http://ogp.me/ns#",
          "iron": "http://purl.org/ontology/iron#",
          "rich": "http://rdf.data-vocabulary.org/",
          "httpvoc": "http://www.w3.org/2006/http#",
          "greg": "http://kasei.us/about/foaf.xrdf#",
          "qudt": "http://qudt.org/1.1/schema/qudt#",
          "eye": "http://jena.hpl.hp.com/Eyeball#",
          "eprints": "http://eprints.org/ontology/",
          "gazetteer": "http://data.ordnancesurvey.co.uk/ontology/50kGazetteer/",
          "kw": "http://kwantu.net/kw/",
          "rdfdf": "http://www.openlinksw.com/virtrdf-data-formats#",
          "steel": "http://ontorule-project.eu/resources/steel-30#",
          "biordf": "http://purl.org/net/biordfmicroarray/ns#",
          "fabio": "http://purl.org/spar/fabio#",
          "nsogi": "http://prefix.cc/nsogi:",
          "hcard": "http://purl.org/uF/hCard/terms/",
          "mei": "http://www.music-encoding.org/ns/mei/",
          "fct": "http://openlinksw.com/services/facets/1.0/",
          "pns": "http://data.press.net/ontology/stuff/",
          "coo": "http://purl.org/coo/ns#",
          "telmap": "http://purl.org/telmap/",
          "nytimes": "http://data.nytimes.com/elements/",
          "aims": "http://aims.fao.org/aos/common/",
          "wm": "http://ns.inria.fr/webmarks#",
          "govtrackus": "http://www.rdfabout.com/rdf/usgov/geo/us/",
          "library": "http://purl.org/library/",
          "rdb": "http://www.dbs.cs.uni-duesseldorf.de/RDF/relational#",
          "iao": "http://purl.obolibrary.org/obo/iao.owl#",
          "fingal": "http://vocab.deri.ie/fingal#",
          "vsto": "http://escience.rpi.edu/ontology/vsto/2/0/vsto.owl#",
          "place": "http://purl.org/ontology/places/",
          "vivo": "http://vivoweb.org/ontology/core#",
          "teach": "http://linkedscience.org/teach/ns#",
          "oper": "http://sweet.jpl.nasa.gov/2.0/mathOperation.owl#",
          "skiresort": "http://www.openlinksw.com/ski_resorts/schema#",
          "telix": "http://purl.org/telix#",
          "lodac": "http://lod.ac/ns/lodac#",
          "acco": "http://purl.org/acco/ns#",
          "s3db": "http://www.s3db.org/core#",
          "ms": "http://purl.org/obo/owl/MS#",
          "uta": "http://uptheasset.org/ontology#",
          "owlse": "http://www.daml.org/services/owl-s/1.2/generic/Expression.owl#",
          "aapi": "http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#",
          "w3con": "http://www.w3.org/2000/10/swap/pim/contact#",
          "visko": "http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",
          "eui": "http://institutions.publicdata.eu/#",
          "re": "http://www.w3.org/2000/10/swap/reason#",
          "str": "http://nlp2rdf.lod2.eu/schema/string/",
          "tmpl": "http://purl.org/restdesc/http-template#",
          "b2bo": "http://purl.org/b2bo#",
          "vcardx": "http://buzzword.org.uk/rdf/vcardx#",
          "gesis": "http://lod.gesis.org/lodpilot/ALLBUS/vocab.rdf#",
          "lgv": "http://linkedgeodata.org/ontology/",
          "kontakt": "http://richard.cyganiak.de/",
          "cheminf": "http://www.semanticweb.org/ontologies/cheminf.owl#",
          "water": "http://escience.rpi.edu/ontology/semanteco/2/0/water.owl#",
          "htir": "http://www.w3.org/2011/http#",
          "jita": "http://aims.fao.org/aos/jita/",
          "artstor": "http://simile.mit.edu/2003/10/ontologies/artstor#",
          "pf": "http://jena.hpl.hp.com/ARQ/property#",
          "biopax": "http://bio2rdf.org/ns/biopax#",
          "xch": "http://oanda2rdf.appspot.com/xch/",
          "psh": "http://psh.techlib.cz/skos/",
          "geovocab": "http://geovocab.org/",
          "ocd": "http://dati.camera.it/ocd/",
          "bcngeo": "http://datos.bcn.cl/ontologies/bcn-geographics#",
          "dawgt": "http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#",
          "gnd": "http://d-nb.info/gnd/",
          "frbrcore": "http://purl.org/vocab/frbr/core#",
          "overheid": "http://standaarden.overheid.nl/owms/",
          "sso": "http://nlp2rdf.lod2.eu/schema/sso/",
          "transit": "http://vocab.org/transit/terms/",
          "georss": "http://www.georss.org/georss/",
          "rating": "http://www.tvblob.com/ratings/#",
          "cvbase": "http://purl.org/captsolo/resume-rdf/0.2/base#",
          "places": "http://purl.org/ontology/places#",
          "mygrid": "http://www.mygrid.org.uk/ontology#",
          "rpubl": "http://rinfo.lagrummet.se/ns/2008/11/rinfo/publ#",
          "npg": "http://ns.nature.com/terms/",
          "wikipedia": "http://www.systemone.at/2006/03/wikipedia#",
          "obs": null,
          "interval": "http://reference.data.gov.uk/def/intervals/",
          "marcrel": "http://id.loc.gov/vocabulary/relators/",
          "madsrdf": "http://www.loc.gov/mads/rdf/v1#",
          "frir": "http://purl.org/twc/ontology/frir.owl#",
          "isbd": "http://iflastandards.info/ns/isbd/elements/",
          "cdm": "http://purl.org/twc/ontology/cdm.owl#",
          "chebi": "http://bio2rdf.org/chebi:",
          "xt": "http://purl.org/twc/vocab/cross-topix#",
          "dwc": "http://rs.tdwg.org/dwc/terms/",
          "viskov": "http://trust.utep.edu/visko/ontology/visko-view-v3.owl#",
          "example": "http://www.example.org/rdf#",
          "b2rpubchem": "http://bio2rdf.org/ns/ns/ns/pubchem#",
          "vdpp": "http://data.lirmm.fr/ontologies/vdpp#",
          "infosys": "http://www.infosys.com/",
          "datafaqs": "http://purl.org/twc/vocab/datafaqs#",
          "gbv": "http://purl.org/ontology/gbv/",
          "pois": "http://purl.oclc.org/POIS/vcblr#",
          "icaltzd": "http://www.w3.org/2002/12/cal/icaltzd#",
          "efo": "http://www.ebi.ac.uk/efo/",
          "vsr": "http://purl.org/twc/vocab/vsr#",
          "arecipe": "http://purl.org/amicroformat/arecipe/",
          "identity": "http://purl.org/twc/ontologies/identity.owl#",
          "wfdesc": "http://purl.org/wf4ever/wfdesc#",
          "daiaserv": "http://purl.org/ontology/daia/Service/",
          "fc": "http://www.freeclass.eu/freeclass_v1#",
          "italy": "http://data.kasabi.com/dataset/italy/schema/",
          "ospost": "http://data.ordnancesurvey.co.uk/ontology/postcode/",
          "fise": "http://fise.iks-project.eu/ontology/",
          "calli": "http://callimachusproject.org/rdf/2009/framework#",
          "d2r": "http://sites.wiwiss.fu-berlin.de/suhl/bizer/d2r-server/config.rdf#",
          "rdfdata": "http://rdf.data-vocabulary.org/rdf.xml#",
          "protegedc": "http://protege.stanford.edu/plugins/owl/dc/protege-dc.owl#",
          "bcnbio": "http://datos.bcn.cl/ontologies/bcn-biographies#",
          "harrisons": "http://harrisons.cc/",
          "metalex": "http://www.metalex.eu/schema/1.0#",
          "eunis": "http://eunis.eea.europa.eu/rdf/species-schema.rdf#",
          "mpeg7": "http://rhizomik.net/ontologies/2005/03/Mpeg7-2001.owl#",
          "lv": "http://lobid.org/vocab/lobid#",
          "c4dm": "http://purl.org/NET/c4dm/event.owl#",
          "viskoo": "http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",
          "pro": "http://purl.org/hpi/patchr#",
          "rdagr1": "http://rdvocab.info/Elements/",
          "func": "http://www.w3.org/2007/rif-builtin-function#",
          "ssn": "http://www.w3.org/2005/Incubator/ssn/ssnx/ssn#",
          "tcga": "http://purl.org/tcga/core#",
          "enhancer": "http://stanbol.apache.org/ontology/enhancer/enhancer#",
          "oboe": "http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#",
          "poder": "http://poderopedia.com/vocab/",
          "nuts": "http://nuts.psi.enakting.org/id/BE335/doc/",
          "br": "http://vocab.deri.ie/br#",
          "open": "http://open.vocab.org/terms/",
          "ipad": "http://www.padinthecity.com/",
          "visit": "http://purl.org/net/vocab/2004/07/visit#",
          "np": "http://www.nanopub.org/nschema#",
          "fl": "http://eulersharp.sourceforge.net/2003/03swap/fl-rules#",
          "sdmxdim": "http://purl.org/linked-data/sdmx/2009/dimension#",
          "xlink": "http://www.w3.org/1999/xlink/",
          "recipe": "http://linkedrecipes.org/schema/",
          "grs": "http://www.georss.org/georss/",
          "dbptmpl": "http://dbpedia.org/resource/Template:",
          "food": "http://purl.org/foodontology#",
          "rec54": "http://www.w3.org/2001/02pd/rec54.rdf#",
          "vvo": "http://purl.org/vvo/ns#",
          "cogs": "http://vocab.deri.ie/cogs#",
          "pol": "http://escience.rpi.edu/ontology/semanteco/2/0/pollution.owl#",
          "wsc": "http://www.openk.org/wscaim.owl#",
          "muto": "http://purl.org/muto/core#",
          "okg": "http://openknowledgegraph.org/ontology/",
          "s2s": "http://escience.rpi.edu/ontology/sesf/s2s/4/0/",
          "blt": "http://data.bl.uk/schema/bibliographic#",
          "omv": "http://omv.ontoware.org/2005/05/ontology#",
          "rdrel": "http://rdvocab.info/RDARelationshipsWEMI/",
          "ends": "http://labs.mondeca.com/vocab/endpointStatus#",
          "aerols": "http://xmlns.com/aerols/0.1/",
          "prf": "http://www.openmobilealliance.org/tech/profiles/UAPROF/ccppschema-20021212#",
          "swpatho": "http://swpatho.ag-nbi.de/context/meta.owl#",
          "wp": "http://vocabularies.wikipathways.org/",
          "cbase": "http://ontologycentral.com/2010/05/cb/vocab#",
          "moby": "http://www.mygrid.org.uk/mygrid-moby-service#",
          "osukdt": "http://www.ordnancesurvey.co.uk/ontology/Datatypes.owl#",
          "ngeoi": "http://vocab.lenka.no/geo-deling#",
          "rda": "http://rdvocab.info/elements/",
          "omapi": "http://purl.org/omapi/0.2/#",
          "category": "http://dbpedia.org/resource/Category:",
          "bcncon": "http://datos.bcn.cl/ontologies/bcn-congress#",
          "lemon": "http://www.monnet-project.eu/lemon#",
          "wfprov": "http://purl.org/wf4ever/wfprov#",
          "goef": "http://purl.org/twc/vocab/goef#",
          "pml": "http://provenanceweb.org/ns/pml#",
          "wscaim": "http://www.openk.org/wscaim.owl#",
          "arpfo": "http://vocab.ouls.ox.ac.uk/projectfunding#",
          "rdamedia": "http://rdvocab.info/termList/RDAMediaType/",
          "hg": "http://www.holygoat.co.uk/owl/redwood/0.1/tags/",
          "life": "http://life.deri.ie/schema/",
          "pav": "http://purl.org/pav/",
          "geom": "http://geovocab.org/geometry#",
          "ogorg": "http://opengraph.org/schema/",
          "flow": "http://www.w3.org/2005/01/wf/flow#",
          "vsw": "http://verticalsearchworks.com/ontology/",
          "muni": "http://purl.org/ontology/muni#",
          "lr": "http://linkedrecipes.org/schema/",
          "cerif": "http://spi-fm.uca.es/neologism/cerif#",
          "lctr": "http://data.linkedct.org/vocab/resource/",
          "pccz": "http://purl.org/procurement/public-contracts-czech#",
          "md": "http://www.w3.org/ns/md#",
          "npgd": "http://ns.nature.com/datasets/",
          "intervals": "http://reference.data.gov.uk/def/intervals/",
          "pna": "http://data.press.net/ontology/asset/",
          "no": "http://km.aifb.kit.edu/projects/numbers/number#",
          "tblcard": "http://www.w3.org/People/Berners-Lee/card#",
          "voidp": "http://www.enakting.org/provenance/voidp/",
          "cis": "http://purl.org/NET/cloudisus#",
          "fls": "http://lukasblaho.sk/football_league_schema#",
          "puelia": "http://kwijibo.talis.com/vocabs/puelia#",
          "webbox": "http://webbox.ecs.soton.ac.uk/ns#",
          "eumida": "http://data.kasabi.com/dataset/eumida/terms/",
          "marl": "http://purl.org/marl/ns#",
          "wbc": "http://worldbank.270a.info/classification/",
          "germplasm": "http://purl.org/germplasm/terms#",
          "prism21": "http://prismstandard.org/namespaces/basic/2.1/",
          "xkos": "http://purl.org/linked-data/xkos#",
          "prviv": "http://purl.org/net/provenance/integrity#",
          "cao": "http://purl.org/makolab/caont/",
          "lexvo": "http://lexvo.org/ontology#",
          "kupkb": "http://www.e-lico.eu/data/kupkb/",
          "carfo": "http://purl.org/carfo#",
          "arg": "http://rdfs.org/sioc/argument#",
          "rdacarrier": "http://rdvocab.info/termList/RDACarrierType/",
          "scufl2": "http://ns.taverna.org.uk/2010/scufl2#",
          "mohammad": "http://manesht.ir/",
          "pne": "http://data.press.net/ontology/event/",
          "dive": "http://scubadive.networld.to/dive.rdf#",
          "myprefix": "http://myprefix.org/",
          "bif": "http://www.openlinksw.com/schema/sparql/extensions#",
          "ncbitaxon": "http://purl.org/obo/owl/NCBITaxon#",
          "admssw": "http://purl.org/adms/sw/",
          "health": "http://purl.org/twc/health/vocab/",
          "pay": "http://purl.org/commerce/payment#",
          "sdgp": "http://stats.data-gov.ie/property/",
          "cts2": "http://schema.omg.org/spec/CTS2/1.0/",
          "wbp": "http://worldbank.270a.info/property/",
          "r4ta": "http://ns.inria.fr/ratio4ta/v1#",
          "ql": "http://www.w3.org/2004/ql#",
          "fcm": "http://eulersharp.sourceforge.net/2006/02swap/fcm#",
          "sgv": "http://www.w3.org/TR/SVG/",
          "r2rml": "http://www.w3.org/ns/r2rml#",
          "npgx": "http://ns.nature.com/extensions/",
          "bp": "http://open-services.net/ns/basicProfile#",
          "person": "http://www.w3.org/ns/person#",
          "oac": "http://www.openannotation.org/ns/",
          "rdacontent": "http://rdvocab.info/termList/RDAContentType/",
          "npgg": "http://ns.nature.com/graphs/",
          "adms": "http://www.w3.org/ns/adms#",
          "dpl": "http://dbpedialite.org/things/",
          "aers": "http://aers.data2semantics.org/resource/",
          "prefix": "http://prefix.cc/",
          "wkd": "http://schema.wolterskluwer.de/",
          "vsws": "http://verticalsearchworks.com/ontology/synset#",
          "vapour": "http://vapour.sourceforge.net/vocab.rdf#",
          "ero": "http://purl.obolibrary.org/obo/",
          "pingback": "http://purl.org/net/pingback/",
          "asn": "http://purl.org/ASN/schema/core/",
          "wn20": "http://www.w3.org/2006/03/wn/wn20/",
          "spif": "http://spinrdf.org/spif#",
          "osmsemnet": "http://spatial.ucd.ie/2012/08/osmsemnet/",
          "onssprel": "http://www.ordnancesurvey.co.uk/ontology/SpatialRelations/v0.2/SpatialRelations.owl#",
          "set": "http://www.w3.org/2000/10/swap/set#",
          "owltime": "http://www.w3.org/TR/owl-time#",
          "pkmn": "http://pokedex.dataincubator.org/pkm/",
          "rssynd": "http://web.resource.org/rss/1.0/modules/syndication/",
          "fd": "http://foodable.co/ns/",
          "laposte": "http://data.lirmm.fr/ontologies/laposte#",
          "idemo": "http://rdf.insee.fr/def/demo#",
          "eseduc": "http://www.purl.org/ontologia/eseduc#",
          "apivc": "http://purl.org/linked-data/api/vocab#",
          "dnb": "http://d-nb.info/gnd/",
          "genea": "http://www.owl-ontologies.com/generations.owl#",
          "dce": "http://purl.org/dc/elements/1.1/",
          "viaf": "http://viaf.org/ontology/1.1/#",
          "agg": "http://purl.org/twc/health/vocab/aggregate/",
          "disco": "http://rdf-vocabulary.ddialliance.org/discovery#",
          "dita": "http://purl.org/ditavoc/schema/",
          "xmls": "http://www.w3.org/2001/XMLSchema#",
          "osn": "http://spatial.ucd.ie/lod/osn/",
          "ekaw": "http://data.semanticweb.org/conference/ekaw/2012/complete/",
          "igeo": "http://rdf.insee.fr/def/geo#",
          "rov": "http://www.w3.org/ns/regorg#",
          "all": null,
          "dco": "http://deepcarbon.net/",
          "ens": "http://models.okkam.org/ENS-core-vocabulary.owl#",
          "oa": "http://www.w3.org/ns/openannotation/core/",
          "atomrdf": "http://atomowl.org/ontologies/atomrdf#",
          "kdo": "http://kdo.render-project.eu/kdo#",
          "dsp": "http://purl.org/metainfo/terms/dsp#",
          "nxp": "http://purl.org/nxp/schema/v1/",
          "ldp": "http://www.w3.org/ns/ldp#",
          "gawd": "http://gawd.atlantides.org/terms/",
          "dcr": "http://www.isocat.org/ns/dcr.rdf#",
          "xml": null,
          "mime": "http://purl.org/NET/mediatypes/",
          "google": null,
          "gsp": "http://www.opengis.net/ont/geosparql#",
          "dssn": "http://purl.org/net/dssn/",
          "l4a": "http://labels4all.info/ns/",
          "uco": "http://purl.org/uco/ns#",
          "oax": "http://www.w3.org/ns/openannotation/extensions/",
          "marshall": "http://sites.google.com/site/xgmaitc/",
          "sitemap": null,
          "bne": "http://datos.bne.es/resource/",
          "hgnc": "http://bio2rdf.org/hgnc:",
          "lyou": "http://purl.org/linkingyou/",
          "bd": "http://www.bigdata.com/rdf/search#",
          "lex": "http://purl.org/lex#",
          "rad": "http://www.w3.org/ns/rad#",
          "gxa": "http://www.ebi.ac.uk/gxa/",
          "cidoccrm": "http://purl.org/NET/cidoc-crm/core#",
          "aersv": "http://aers.data2semantics.org/vocab/",
          "tisc": "http://observedchange.com/tisc/ns#",
          "jjd": "http://www.joshuajeeson.com/",
          "geocontext": "http://www.geocontext.org/publ/2013/vocab#",
          "bte": "http://purl.org/twc/vocab/between-the-edges/",
          "w3po": "http://purl.org/provenance/w3p/w3po#",
          "fos": "http://futurios.org/fos/spec/",
          "city": "http://datos.localidata.com/def/City#",
          "vocab": "http://rdf.ontology2.com/vocab#",
          "oarj": "http://opendepot.org/reference/linked/1.0/",
          "qud": "http://qudt.org/1.1/schema/qudt#",
          "particip": "http://purl.org/vocab/participation/schema#",
          "bing": "http://bing.com/schema/media/",
          "photoshop": "http://ns.adobe.com/photoshop/1.0/",
          "qa": "http://www.mit.jyu.fi/ai/TRUST_Ontologies/QA.owl#",
          "ssso": "http://purl.org/ontology/ssso#",
          "ds": "http://purl.org/ctic/dcat#",
          "osp": "http://data.lirmm.fr/ontologies/osp#",
          "fowl": "http://www.w3.org/TR/2003/PR-owl-guide-20031209/food#",
          "strdf": "http://strdf.di.uoa.gr/ontology#",
          "daisy": "http://www.daisy.org/z3998/2012/vocab/",
          "xmp": "http://ns.adobe.com/xap/1.0/",
          "pronom": "http://reference.data.gov.uk/technical-registry/",
          "mil": "http://rdf.muninn-project.org/ontologies/military#",
          "opl": "http://openlinksw.com/schema/attribution#",
          "ep": "http://eprints.org/ontology/",
          "gso": "http://www.w3.org/2006/gen/ont#",
          "dbtont": "http://dbtropes.org/ont/",
          "occult": "http://data.totl.net/occult/",
          "lh": "http://vocab.inf.ed.ac.uk/library/holdings#",
          "aigp": "http://swat.cse.lehigh.edu/resources/onto/aigp.owl#",
          "dso": "http://purl.org/ontology/dso#",
          "cb": "http://cbasewrap.ontologycentral.com/vocab#",
          "geod": "http://vocab.lenka.no/geo-deling#",
          "nyt": "http://data.nytimes.com/element/",
          "api": "http://purl.org/linked-data/api/vocab#",
          "dqm": "http://purl.org/dqm-vocabulary/v1/dqm#",
          "fcp": "http://www.newmedialab.at/fcp/",
          "aos": "http://rdf.muninn-project.org/ontologies/appearances#",
          "biotop": "http://purl.org/biotop/biotop.owl#",
          "agrelon": "http://d-nb.info/standards/elementset/agrelon.owl#",
          "csp": "http://vocab.deri.ie/csp#",
          "ptop": "http://www.ontotext.com/proton/protontop#",
          "coun": "http://www.daml.org/2001/09/countries/iso-3166-ont#",
          "dcndl": "http://ndl.go.jp/dcndl/terms/",
          "infor": "http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",
          "ntag": "http://ns.inria.fr/nicetag/2010/09/09/voc#",
          "part": "http://purl.org/vocab/participation/schema#",
          "dr": "http://purl.org/swan/2.0/discourse-relationships/",
          "wlo": "http://purl.org/ontology/wo/",
          "lcy": "http://purl.org/vocab/lifecycle/schema#",
          "mads": "http://www.loc.gov/mads/rdf/v1#",
          "geosp": "http://rdf.geospecies.org/ont/geospecies#",
          "cold": "http://purl.org/configurationontology#",
          "mds": "http://doc.metalex.eu/id/",
          "dcm": "http://dcm.com/",
          "comm": "http://vocab.resc.info/communication#",
          "cpa": "http://www.ontologydesignpatterns.org/schemas/cpannotationschema.owl#",
          "drm": "http://vocab.data.gov/def/drm#",
          "oecc": "http://www.oegov.org/core/owl/cc#",
          "ontopic": "http://www.ontologydesignpatterns.org/ont/dul/ontopic.owl#",
          "osgeom": "http://data.ordnancesurvey.co.uk/ontology/geometry/",
          "tvc": "http://www.essepuntato.it/2012/04/tvc/",
          "ecos": "http://kmm.lboro.ac.uk/ecos/1.0#",
          "wsl": "http://www.wsmo.org/ns/wsmo-lite#",
          "edgar": "http://edgarwrap.ontologycentral.com/vocab/edgar#",
          "ctorg": "http://purl.org/ctic/infraestructuras/organizacion#",
          "vrank": "http://purl.org/voc/vrank#",
          "zoomaterms": "http://rdf.ebi.ac.uk/vocabulary/zooma/",
          "role": "http://purl.org/vocab/participation/schema#",
          "ostop": "http://www.ordnancesurvey.co.uk/ontology/Topography/v0.1/Topography.owl#",
          "osadm": "http://data.ordnancesurvey.co.uk/ontology/admingeo/",
          "elec": "http://purl.org/ctic/sector-publico/elecciones#",
          "passim": "http://data.lirmm.fr/ontologies/passim#",
          "pizza": "http://www.co-ode.org/ontologies/pizza/pizza.owl#",
          "opmo": "http://openprovenance.org/model/opmo#",
          "gnvc": "http://purl.org/gc/",
          "osspr": "http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",
          "lingvo": "http://www.lingvoj.org/ontology#",
          "lsc": "http://linkedscience.org/lsc/ns#",
          "osr": "http://dati.senato.it/osr/",
          "graffle": "http://purl.org/twc/vocab/vsr/graffle#",
          "mrel": "http://id.loc.gov/vocabulary/relators/",
          "rdag1": "http://rdvocab.info/Elements/",
          "nsl": "http://purl.org/ontology/storyline/",
          "agls": "http://www.agls.gov.au/agls/terms/",
          "gadm": "http://gadm.geovocab.org/ontology#",
          "lmm2": "http://www.ontologydesignpatterns.org/ont/lmm/LMM_L2.owl#",
          "rdarel": "http://rdvocab.info/RDARelationshipsWEMI/",
          "inno": "http://purl.org/innovation/ns#",
          "iol": "http://www.ontologydesignpatterns.org/ont/dul/IOLite.owl#",
          "meb": "http://rdf.myexperiment.org/ontologies/base/",
          "itsmo": "http://ontology.it/itsmo/v1#",
          "lmm1": "http://www.ontologydesignpatterns.org/ont/lmm/LMM_L1.owl#",
          "mvco": "http://purl.oclc.org/NET/mvco.owl#",
          "situ": "http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",
          "bf": "http://bibframe.org/vocab/",
          "msr": "http://www.telegraphis.net/ontology/measurement/measurement#",
          "odapp": "http://vocab.deri.ie/odapp#",
          "odpart": "http://www.ontologydesignpatterns.org/cp/owl/participation.owl#",
          "ordf": "http://purl.org/NET/ordf/",
          "quty": "http://www.telegraphis.net/ontology/measurement/quantity#",
          "rdafrbr": "http://rdvocab.info/uri/schema/FRBRentitiesRDA/",
          "turismo": "http://idi.fundacionctic.org/cruzar/turismo#",
          "raul": "http://vocab.deri.ie/raul#",
          "deo": "http://purl.org/spar/deo/",
          "pwo": "http://purl.org/spar/pwo/",
          "graves": "http://rdf.muninn-project.org/ontologies/graves#",
          "being": "http://purl.org/ontomedia/ext/common/being#",
          "dl": "http://ontology.ip.rm.cnr.it/ontologies/DOLCE-Lite#",
          "oprovo": "http://openprovenance.org/ontology#",
          "pso": "http://purl.org/spar/pso/",
          "biro": "http://purl.org/spar/biro/",
          "cgov": "http://reference.data.gov.uk/def/central-government/",
          "coll": "http://purl.org/co/",
          "crsw": "http://courseware.rkbexplorer.com/ontologies/courseware#",
          "dcite": "http://purl.org/spar/datacite/",
          "doco": "http://purl.org/spar/doco/",
          "nif": "http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#",
          "roterms": "http://purl.org/wf4ever/roterms#",
          "rdarole": "http://rdvocab.info/roles/",
          "locwd": "http://purl.org/locwd/schema#",
          "moac": "http://observedchange.com/moac/ns#",
          "obsm": "http://rdf.geospecies.org/methods/observationMethod#",
          "odv": "http://reference.data.gov.uk/def/organogram/",
          "rdag3": "http://rdvocab.info/ElementsGr3/",
          "semio": "http://www.lingvoj.org/semio#",
          "gastro": "http://www.ebsemantics.net/gastro#",
          "gnm": "http://www.geonames.org/ontology/mappings/",
          "seq": "http://www.ontologydesignpatterns.org/cp/owl/sequence.owl#",
          "snarm": "http://rdf.myexperiment.org/ontologies/snarm/",
          "swpo": "http://sw-portal.deri.org/ontologies/swportal#",
          "tao": "http://vocab.deri.ie/tao#",
          "te": "http://www.w3.org/2006/time-entry#",
          "tis": "http://www.ontologydesignpatterns.org/cp/owl/timeindexedsituation.owl#",
          "spt": "http://spitfire-project.eu/ontology/ns/",
          "trait": "http://contextus.net/ontology/ontomedia/ext/common/trait#",
        },
        resolve: function(value){
            value = value.replace("\/","/")
            var id = value;
            var index = value.lastIndexOf('#');
            var name = "";
            
            if(index != -1) {
                name = value.substring(index+1);
                value = value.substring(0,index+1);
            } else {
                index = value.lastIndexOf('/');
                if(index != -1) {
                    name = value.substring(index+1);
                    value = value.substring(0,index+1);
                    
                } else return null
            }
            
            if(prefixService.usedNamespaces[value]===undefined) {
                // If namespace is used for the first time
                for(key in prefixService.namespaces){
                    if(prefixService.namespaces[key] == value){
                        prefixService.usedNamespaces[value] = key;
                        return { id: id, prefix:key, namespace:value, prefixed: key+":"+name, localName: name }
                    }
                }
                // If prefix is not found add new namespace and bogus prefix
                prefixService.usedNamespaces[value] = "na"+prefixService.localNamespaces;
                prefixService.localNamespaces+=1;
                return { id:id, prefix:prefixService.usedNamespaces[value], namespace:value, prefixed: prefixService.usedNamespaces[value]+":"+name, localName: name }
            } else {
                // If namespace is already been used
                return { id:id,prefix:prefixService.usedNamespaces[value], namespace:value, prefixed: prefixService.usedNamespaces[value]+":"+name, localName: name }
            }
            
            return null;
            }
    }
    
    return prefixService;
   
});



}).call(this);